package middleware

import (
	"gitee.com/xluomo945/fm/context"
	"github.com/gin-gonic/gin"
	"github.com/google/uuid"
)

func Trace(ctx *gin.Context) {
	// 请求开始时, 上下文写入链路ID
	context.SetTradeID(ctx, uuid.NewString())
}
